﻿@model JuniorProject.Models.Employee.EmployeeHiringModel

@{
    ViewBag.Title = "HireConfirm";
}

<h2>Confirm</h2>
<h3>Are you sure you want to hire this person?</h3>
<br />

<fieldset>
    <legend>EmployeeHiringModel</legend>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.FirstName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FirstName)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.LastName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastName)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.JobTitle)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.JobTitle)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.JobLocation)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.JobLocation)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.InsertDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.InsertDate)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.BGCheck)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.BGCheck)
    </div>
</fieldset>

<br />
@if (Model.BGCheck)
{
    @Html.ActionLink("Confirm", "ClosePosting", new { postingID = ViewBag.PostingID, appID = ViewBag.ApplicationID }, new { @class = "Confirm" })
    <br />
    <br />
}
else
{
    <p>Please have an HR Specialist perform a background check on this applicant before hiring.</p>
}

@Html.ActionLink("Cancel", "JobPostings", new { id = ViewBag.PostingID })
<p>
    @Html.Partial("_EmployeeBottomNavBar", ViewData["AccessLevel"])
</p>